<%= error_messages_for :milestone %>
<div class=card>
<script>
 Date.weekdays = $w("0 1 2 3 4 5 6");
</script>
<div class=page_head>
<span></span>
<h2>sfsaf</h2>
</div>

<% form_for(:milestone, :url => milestones_path) do |f| %>
 <div class="float_right" style="width:65%;padding:20px;border-left:1px #ccc solid;">
    <b>Name</b><br />
    <%= f.text_field :name,:size=>30 %><br />
    Who is response for?<br />
    <select name=milestone[user_id]>
    <option><%="Anyone".t%></option>
    <option value=<%=@cur_user.id%>><%="Me".t%>(<%=@cur_user.name%>)</option>
    <%=options_from_collection_for_select @project.users - [@cur_user],"id","name"%>
    </select>
    <hr>
    <%= submit_tag "Create this milestone" %>
 </div>
    <b>When's it due?</b><br />
    <%=calendar_date_select_tag "milestone[due_at]",Time.now, :embedded => true, :year_range =>0%>
<% end %>
</div>
